/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bean;

/**
 *
 * @author Student
 */
public class Book {
    private String judul;
    private String description;
    private double price;
    private double disc;
    
    public Book(){
        
    }

    /**
     * @return the judul
     */
    public String getJudul() {
        return judul;
    }

    /**
     * @param judul the judul to set
     */
    public void setJudul(String judul) {
        this.judul = judul;
    }

    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    /**
     * @param description the description to set
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * @return the price
     */
    public double getPrice() {
        return price;
    }

    /**
     * @param price the price to set
     */
    public void setPrice(double price) {        
        this.price = price -(price*(this.getDisc()/100));
    }

    /**
     * @return the disc
     */
    public double getDisc() {
        return disc;
    }

    /**
     * @param disc the disc to set
     */
    public void setDisc(double disc) {
        this.disc = disc;
    }
    
    
}
